﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterNhanSuTienLuong.Master" Inherits="System.Web.Mvc.ViewPage<DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.FormBean.DanhMuc.PhuCapDiLaiForm>" %>
<%@ Import Namespace="DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.LinQ.DanhMuc" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/DanhMuc/PhuCapDiLai.js") %>"></script>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        selectMenu("DanhMucChung-DiLai");
        $("#DanhMucChung-DiLai").parent().attr("class", "expanded");

    });
    </script>
    <form id="form" method="post" action="#">

    <input type="hidden" id="id" name="id" value="<%=Model.id %>" />    <input type="hidden" id="count" name="id" value="<%=Model.count %>" />
      <div class="box">
           <div class="breadcrumbs">
          <ul>
            <li class="home"><a href="">Quản lý Danh mục</a></li>
            <li><a href="">Thùng rác của danh mục Đi lại</a></li>
            <li>Page</li>
          </ul>
        </div>
           <div class="headlines">
            <h2>
                <span>Thùng rác của danh mục Đi lại</span>
            </h2>
               <%-- <a class="show-filter" href="#">show filter</a>--%>
        </div>
        <table class="table_outsite" width="100%">                 
                    <tr>
                        <td style="text-align:right;" class="btn-submit">
                             <input type="button" class="button" value="Xóa hẳn" onclick="javascript:DoClean();" />
                             <input type="button" class="button" value="Phục hồi" onclick="javascript:DoRecycle();" />
                             <input type="button" class="button" value="Trở về" onclick="javascript:ToBack();" />
                        </td>
                    </tr>
                </table>
         <table  class="tab tab-drag">
                            <tr class="top nodrop nodrag" style="font-weight: bold">
                             <td class="first" align="center">
                                    <input type="checkbox" id="chkCheckAll" name="chkCheckAll" onclick="javascript:CheckUnCheckAll();" />
                           </td>
                                <td >
                                    <strong>Số thứ tự</strong>
                                </td>
                                <td class="last">
                                    <strong>Số tiền</strong>
                                </td>                                                                                       
                            </tr>
                            <%--Danhd Muc PhuCapDiLai List--%>
                            <%
                                
                                IList<dm_PhuCapDiLai> RecyclePhuCapDiLaiList = Model.RecyclePhuCapDiLaiPagedList;
                                int t = (Model.Pagenumber - 1) * DTTB.Common.CommonVariables.PaggedItemsPerPage;
                                foreach (dm_PhuCapDiLai item in RecyclePhuCapDiLaiList)
                                   
                            {
                                t++;
                            %>
                            <tr class="item_row">
                            <td class="first" align="center">
                                    
                                        <input type="checkbox" id="chkChon" name="chkChon" value="<%= item.Id %>" />
                            </td>
                                <td >
                                    <%=t %>
                                </td>
                                <td align="left"  class="last">
                                    <%=item.TienPhuCapDiLai != null ? item.TienPhuCapDiLai.Value.ToString("#,#").Replace(",", ".") + " VNĐ" : ""%>&nbsp;
                                </td>
                            </tr>
                            <%}
                            %>
                            <tr class="border_bottom">
<%--                                <td class="first" style="background: #DDDDDD">
                                </td>--%>
                                <td class="last" colspan="3" align="right" style="background: #DDDDDD; padding-right: 10px">
                                     
                                     <%
                                     PagerOptions pagerOptions = new PagerOptions();
                                     DTTB.MV2.QUANLYNHANSUTIENLUONG.BussinessDelegate.CommonDelegate.CommonDelegate CommonDelegate =
                                            new DTTB.MV2.QUANLYNHANSUTIENLUONG.BussinessDelegate.CommonDelegate.CommonDelegate();

                                     CommonDelegate.ChangeTextPaging(pagerOptions, "PageNumber");
                                     %>
                                    <div><%=Html.Pager(Model.RecyclePhuCapDiLaiPagedList, pagerOptions)%></div>
                                    <%=Html.Hidden("PageNumber", Model.Pagenumber)%>
                                </td>
                            </tr>
                            <%--dã xóa--%>
                        </table>   
           
       <%-- </div>--%>
    </div>
    <%--<%Html.EndForm(); %>--%>

    </form>
</asp:Content>
